<?php
/**
 * 简历解析 Logic
 */

namespace app\common\queue\Customer;

use app\common\queue\CommonQueue;
use think\console\Command;
use think\console\Input;
use think\console\Output;

/**
 * 激活服务
 * Class ActivateQueue
 * @package app\common\logic
 */
class CommonCustomerQueue extends Command {

//    public $key = 'activate_queue';
    protected function configure()
    {
        $this->setName('common_queue')->addArgument('queue_key')->setDescription('Here is the activate_queue ');
    }

    protected function execute(Input $input, Output $output)
    {
        $key = $input->getArgument('queue_key');

        $queue = new CommonQueue(['queue_key'=>$key]);
        $queue->run();
        $output->writeln("Success");
    }
}